package com.hyx.api.mapper;

import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.hyx.api.domain.WalletChangeInfo;
import com.hyx.api.domain.vo.WalletChangeInfoVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 钱包收支Mapper接口
 *
 * @author HK
 * @date 2023-10-26
 */
public interface WalletChangeInfoMapper extends BaseMapperPlus<WalletChangeInfo, WalletChangeInfoVo> {

    /*今日支出*/
    BigDecimal nowDayExpend();

    /**
     * 获取指定日期的收入
     *
     * @param date
     * @return
     */
    BigDecimal incomeForDate(@Param("date") Date date);

    /**
     * 获取指定日期的支出
     *
     * @param date
     * @return
     */
    BigDecimal expendForDate(@Param("date") Date date);
}
